<!--<div class="view-header clearfix">-->
    <!--<div class="head-icon refresh" ng-click="submit()" title="同步用户角色">-->
        <!--<i class="fa fa-refresh"></i>同步用户角色-->
    <!--</div>-->
<!--</div>-->

<div class="view-content">
    <div class="view-left col-sm-6">
        <div class="view-left-search">
            <input type="text" placeholder='用户' ng-model="user_name_filter">
            <i class="fa fa-search"></i>
        </div>
        <div class="view-left-block">
            <div class="view-left-item t-head clearfix">
                <div class="double-noicon"><i class="fa fa-user"></i>用户</div>
                <div class="double-noicon"><i class="fa fa-car"></i>门店</div>
            </div>
            <div class="item-scroll-box">
                <div class="view-left-item t-body clearfix"
                     ng-repeat="user in user_data |orderBy:['username'] | filter:user_name_filter"
                     ng-click='user_ranks_show(user,user_data)'
                     ng-class="{true: 'active', false: ''}[user.isActive]">
                    <div title="{{user.name}}" class="double-noicon elip" ng-bind="user.name"></div>
                    <div title="{{user.shop_name}}" class="double-noicon elip" ng-bind="user.shop_name"></div>
                </div>
            </div>

        </div>
    </div>

    <div class="view-right col-sm-6 col-sm-offset-6">
        <div class="view-right-title">
            分配用户<span class='color-show' ng-bind="username?'&nbsp'+username+'&nbsp':''"></span>岗位
        </div>
        <div class="new-content">
            <div class="new-item clearfix">
                <span class="span">岗位</span>
                <select chosen
                        multiple
                        width="'260px'"
                        data-placeholder="选择岗位"
                        no-results-text="'没有匹配'"
                        ng-model="rankid"
                        ng-options="rank.id as rank.name for rank in all_ranks"
                        ng-change="changeRank(rankid)">
                    <option value=""></option>
                </select>
            </div>
            <div class="new-item clearfix">
                <span class="span">角色</span>
                <div class="right-div">
                    <ul>
                        <li style="width: 50%;padding: 0 5px;float: left;" class="elip" title="{{role.rolename}}" ng-repeat="role in roles" ng-bind="role.rolename"></li>
                    </ul>
                </div>
            </div>
        </div>

    </div>
</div>